package com.xca.znb.model.impl;

import android.content.Context;

import com.xca.znb.database.UserDAO;
import com.xca.znb.entity.Goods;
import com.xca.znb.model.imodel.ISearch;

import java.util.List;

public class SearchImpl implements ISearch {
    private UserDAO userDAO ;
    public SearchImpl(Context context){
        userDAO = new UserDAO(context);
    }
    @Override
    public List<Goods> searchGoodsByName(String input) {
        return userDAO.searchGoodsByName(input);
    }

    @Override
    public void addOrUpdateFoot(int goodsId, String user, String time) {
        userDAO.addOrUpdateFoot(goodsId, user, time);
    }

}
